From: Colin Walters Date: Thu, 18 Mar 2010 20:39:11 +0000 (-0400) Subject: [workspace] Ensure we emit drag-end if we're in a drag during a destroy X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10285 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b7c6ec4b469ebf541e05ff0dd3d458349685bd0b;p=gnome-shell.git [workspace] Ensure we emit drag-end if we're in a drag during a destroy Showing the window overlay relies on drag-end being emitted, so do so if we're in a drag. --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 522c251c2..e010e8dd1 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -204,6 +204,11 @@ WindowClone.prototype = { if (this._zoomLightbox) this._zoomLightbox.destroy(); + if (this._inDrag) { + this.emit('drag-end'); + this._inDrag = false; + } + this.disconnectAll(); },